package Mangos::DB::Characters::ArenaTeamStats;

use strict;

use base qw(Mangos::DB::Characters);

__PACKAGE__->meta->setup
(
    table   => 'arena_team_stats',

    columns => 
    [
        arenateamid => { type => 'integer', not_null => 1 },
        rating      => { type => 'integer', default => '0', not_null => 1 },
        games       => { type => 'integer', default => '0', not_null => 1 },
        wins        => { type => 'integer', default => '0', not_null => 1 },
        played      => { type => 'integer', default => '0', not_null => 1 },
        wins2       => { type => 'integer', default => '0', not_null => 1 },
        rank        => { type => 'integer', default => '0', not_null => 1 },
    ],

    primary_key_columns => [ 'arenateamid' ],
);

1;

package Mangos::DB::Characters::ArenaTeamStats::Manager;

use strict;
use warnings;

use base 'Rose::DB::Object::Manager';

sub object_class { 'Mangos::DB::Characters::ArenaTeamStats' }

__PACKAGE__->make_manager_methods('arena_team_stats');

1;
